package com.ruoyi.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.util.OurBaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * river_news对象 river_news
 * 
 * @author ya
 * @date 2025-06-22
 */

@Data
@TableName("river_news")
public class RiverNews extends OurBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long newsId;

    /** 标题 */
    @Excel(name = "标题")
    @TableField(value = "title")
    private String title;

    /** 文章来源 */
    @Excel(name = "文章来源")
    @TableField(value = "article_origin")
    private String articleOrigin;

    /** 栏目id */
    @Excel(name = "栏目id")
    @TableField(value = "column_id")
    private Long columnId;

    /** 内容 */
    @Excel(name = "内容")
    @TableField(value = "content")
    private String content;

    /** 责任编辑 */
    @Excel(name = "责任编辑")
    @TableField(value = "author")
    private String author;

    /** 封面路径 */
    @Excel(name = "封面路径")
    @TableField(value = "cover_path")
    private String coverPath;

    /** 副标题1 */
    @Excel(name = "副标题1")
    @TableField(value="little_title1")
    private String littleTitle1;

    /** 副标题2 */
    @Excel(name = "副标题2")
    @TableField(value="little_title2")
    private String littleTitle2;

    /** 状态（0-上架，1-下架） */
    @Excel(name = "状态", readConverterExp = "0=上架,1=下架")
    @TableField(value = "status")
    private Integer status;

    /** 发布日期 */
    @Excel(name = "发布日期")
    @TableField(value = "pubdate")
    private String pubdate;

    /** 开始发布日期 */
    @TableField(exist = false)
    private String beginPubdate;

    /** 结束发布日期 */
    @TableField(exist = false)
    private String endPubdate;

    /** 排序字段 */
    @Excel(name = "排序")
    @TableField(value = "sort_order")
    private Integer sortOrder;

}
